<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Home extends CI_Controller {

	public function index()
	{
            $isLogin = $this->session->userdata('is_login');
            if(isset($isLogin)){
                $hasSession=$isLogin;
            }else{
                $hasSession=FALSE;
            }
            $data=array("hasSession"=>$hasSession);
            $this->load->view('homepage',$data);
	}
}
